﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

abstract class Computer
{
    protected ComputerPart cpu;
    protected ComputerPart ram;
    protected ComputerPart monitor;


    public void setCPUPart(String n)
    {
        cpu.setNume(n);
    }

    public String getCPUPart()
    {
        return cpu.getNume();
    }


    public void setRAMPart(String n)
    {
        ram.setNume(n);
    }

    public String getRAMPart()
    {
        return ram.getNume();
    }


    public void setMonitorPart(String n)
    {
        monitor.setNume(n);
    }

    public String getMonitorPart()
    {
        return monitor.getNume();
    }

    public virtual void printComputerDetails()
    {
        Console.WriteLine(cpu.getNume() + " " + ram.getNume() + " " + monitor.getNume());
    }
}